/*
 * Copyright (c) 2018. 玺得（深圳）科技有限公司.保留所有权利. http://www.pi-top.com/ 玺得（深圳）科技有限公司保留所有代码著作权.如有任何疑问请访问官方网站与我们联系. 代码只针对特定需求定制编码，不得在未经允许或授权的情况下对外传播扩散.恶意传播者，法律后果自行承担. 本代码仅用于pps-cloud系统.
 */
package com.pitop.sync.api;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

import com.pitop.sync.entity.SyncDataTrace;

/**
 * 同步数据 api请求熔断器
 *
 * @author pi-top
 */
@FeignClient(value = "pps-cloud-provider", fallback = SyncDataTraceFeignApiImpl.class)
public interface SyncDataTraceFeignApi {
    /**
     * 查询SyncDataTrace一个详情信息
     *
     * @param id            id
     * @param syncTraceCode 同步追踪编码
     * @return BeanRet
     */
    @GetMapping(value = "/syncDataTrace/load")
    SyncDataTrace load(@RequestParam("id") java.lang.Long id, @RequestParam("syncTraceCode") java.lang.String syncTraceCode);


    /**
     * 根据条件id查询SyncDataTrace一个详情信息
     *
     * @param id id
     * @return BeanRet
     */
    @GetMapping(value = "/syncDataTrace/load/id/{id}")
    SyncDataTrace loadById(@RequestParam("id") java.lang.Long id);


    /**
     * 根据条件syncTraceCode查询SyncDataTrace一个详情信息
     *
     * @param syncTraceCode 同步追踪编码
     * @return BeanRet
     */
    @GetMapping(value = "/syncDataTrace/load/syncTraceCode/{syncTraceCode}")
    SyncDataTrace loadBySyncTraceCode(@RequestParam("syncTraceCode") java.lang.String syncTraceCode);

    /**
     * 删除SyncDataTrace
     *
     * @return BeanRet
     */
    @DeleteMapping("/syncDataTrace/delete")
    void delete(@RequestParam("id") java.lang.Long id, @RequestParam("syncTraceCode") java.lang.String syncTraceCode);


    /**
     * 查询SyncDataTrace信息集合
     *
     * @return 分页对象
     */
    @PostMapping(value = "/syncDataTrace/list")
    List<SyncDataTrace> list(@RequestBody SyncDataTrace syncDataTrace, @RequestParam("curPage") int curPage, @RequestParam("pageSize") int pageSize);


    /**
     * 查询SyncDataTrace信息集合
     *
     * @return 分页对象
     */
    @GetMapping(value = "/syncDataTrace/list/by")
    List<SyncDataTrace> listByPk(@RequestParam("id") java.lang.Long id, @RequestParam("syncTraceCode") java.lang.String syncTraceCode, @RequestParam("curPage") int curPage, @RequestParam("pageSize") int pageSize);


    /**
     * 统计SyncDataTrace信息数量根据主键
     *
     * @return 总条数
     */
    @GetMapping(value = "/syncDataTrace/count/by")
    Integer count(@RequestParam("id") java.lang.Long id, @RequestParam("syncTraceCode") java.lang.String syncTraceCode);

    /**
     * 统计SyncDataTrace信息数量
     *
     * @return 总条数
     */
    @PostMapping(value = "/syncDataTrace/count")
    Integer count(@RequestBody SyncDataTrace syncDataTrace);


    /**
     * 创建SyncDataTrace
     *
     * @return BeanRet
     */
    @PostMapping("/syncDataTrace/build")
    SyncDataTrace build(@RequestBody SyncDataTrace syncDataTrace);


    /**
     * 修改SyncDataTrace
     *
     * @return BeanRet
     */
    @PutMapping("/syncDataTrace/modify")
    SyncDataTrace modify(@RequestBody SyncDataTrace syncDataTrace);


}
